<?php

/**
* @current cmsfocusmaterial.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2017年2月9日 上午9:49:25
*/
namespace haibao\jiepai\model\data\focus;

class CmsFocusMaterial extends \haibao\jiepai\model\data\Base{

    /**
     * 0未使用,1已使用
     */
    const STATUS_DISABLE = 0;
    const STATUS_ENABLE = 1;
    
    const FLAG_ENABLE = 0;
    const FLAG_DISABLE = -1;
    /**
     * 1-焦点图 2-信息流展位文章 3-头条展位文章
     */
    const CATEGORY_FOCUS = 1;
    const CATEGORY_INFO = 2;
    const CATEGORY_TOP = 3;
    
    /**
     * 1.文章，2专题，3.人物主页，4.标签，5网页
     */
    const TYPE_ARTICLE =1;
    const TYPE_FEATURE =2;
    const TYPE_HOMEPAGE =3;
    const TYPE_TAG =4;
    const TYPE_NETPAGE =5;
    
    public $Category;
    
    public $Type;
    
    public $TypeID;
    
    public $Link;
    /**
     * 标题
     */
    public $Title;
    
    public $Picture;
    
    public $CreateTime;
    /**
     * 上架时间
     */
    public $UpTime;
    
    /**
     * 下架时间
     */
    public $DownTime;
    /**
     * 编辑ID
     */
    public $Editor;
    
    /**
     * 备注
     */
    public $Remarks;
    
    /**
     * 显示顺序(焦点图) 特殊文章显示位置
     */
    public $UpIndex;
    
    public $Status;
    /**
     * -1删除
     */
    public $Flag;
    
    public $ArticleList;
    
    public $PictureUrl;
    
    public function __construct(){
        parent::__construct();
        $this->setColumnName('Id', 'ID');
        $this->intField('Category', 'Category');
        $this->intField('Type', 'Type');
        $this->intField('TypeID', 'TypeID');
        $this->stringField('Link', 'Link');
        $this->stringField('Title', 'Title');
        $this->intField('Picture', 'Picture');
        $this->dateField('CreateTime', 'CreateTime');
        $this->dateField('UpTime', 'UpTime');
        $this->dateField('DownTime', 'DownTime');
        $this->intField('Editor', 'Editor');
        $this->stringField('Remarks', 'Remarks');
        $this->intField('UpIndex', 'UpIndex');
        $this->intField('Status', 'Status');
        $this->intField('Flag', 'Flag');

        $this->setTableName('cms_focus_material');
    }
}
